package com.hilatest.osgi;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activiator implements BundleActivator {

	public void start(BundleContext context) throws Exception {
		//注册服务的方法
		context.registerService(Greeting.class, new GreetingImpl("lifecycle"), null	);
		
	}

	public void stop(BundleContext context) throws Exception {}

}
